package com.cloudsea.yunhaianalysis.service;

import com.cloudsea.yunhaianalysis.entity.Warnings;
import java.util.List;

public interface WarningService {
    void createWarning(Long storeId, String type, String content);
    List<Warnings> getLatestUnreadWarnings(Long storeId);

    /**
     * 【新增】将单条预警标记为已读
     * @param warningId 要标记的预警ID
     */
    void markAsRead(Long warningId);

    /**
     * 【新增】将指定门店的所有未读预警一键标记为已读
     * @param storeId 门店ID
     */
    void markAllAsRead(Long storeId);
}
